package ishitong.vehicleManagement.service.biz.impl;

import ishitong.vehicleManagement.dao.ImportantVehicleAuditDao;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import com.ishitong.platform.common.page.Page;
import org.apache.commons.lang3.StringUtils;
import java.util.List;
import java.util.ArrayList;
import ishitong.vehicleManagement.model.ImportantVehicleAudit;
import ishitong.vehicleManagement.model.ImportantVehicleAuditQuery;
import ishitong.vehicleManagement.service.biz.ImportantVehicleAuditService;

/** @pdOid 779c7ab2-e634-4963-941b-712acff4307e
 * @创建日期:2013-10-11 15:26:06
 * 
 * @功能描述:ImportantVehicleAudit业务服务
 * @开发人员:福建视通 */
@Service(value="importantVehicleAuditService")
@Transactional
public class ImportantVehicleAuditServiceImpl implements ImportantVehicleAuditService {
   /** @pdOid b370f055-e0e2-4e70-953e-20cc916a7336
       @pdRoleInfo migr=yes name=ImportantVehicleAuditDao assc=association5 */
   @Autowired
   private ImportantVehicleAuditDao importantVehicleAuditDao;
   
   /** @param id
    * @pdOid b402824a-621a-44fd-9dad-f7123d308929
    * @功能描述: 删除ImportantVehicleAudit
    * @异常类型: */
   public void delete(String id) {
   	if(id!=null&&!id.trim().equals("")){
   		String[] idList=id.split(";");
   		for(int i=0;i<idList.length;i++){
   			if(idList[i]!=null&&!idList[i].trim().equals("")){
   				this.importantVehicleAuditDao.remove(id);
   			}
   		}
   	}
   }
   
   /** @param importantVehicleAudit
    * @pdOid 743cf965-dba8-4a39-8a81-0db133d3a36a
    * @功能描述: 删除ImportantVehicleAudit
    * @异常类型: */
   public void deleteByModel(ImportantVehicleAudit importantVehicleAudit) {
   	this.importantVehicleAuditDao.remove(importantVehicleAudit);
   }
   
   /** @param id
    * @pdOid 024061f1-5dfd-4c5e-8390-01330919f46a
    * @功能描述: 查询ImportantVehicleAudit
    * @异常类型: */
   public ImportantVehicleAudit findById(String id) {
   	return this.importantVehicleAuditDao.findByPrimaryKey(id);
   }
   
   /** @param importantVehicleAudit
    * @pdOid cf1f4600-7992-46f8-bc64-f6ea8a8ecf12
    * @功能描述: 新增与修改ImportantVehicleAudit
    * @异常类型: */
   public void save(ImportantVehicleAudit importantVehicleAudit) {
   	this.importantVehicleAuditDao.save(importantVehicleAudit);
   }
   
   /** @param query 
    * @param pageSize 
    * @param pageNum
    * @pdOid c4447a35-3c73-4054-ae4c-22158da429c3
    * @功能描述: 通过ImportantVehicleAuditQuery对象，查询ImportantVehicleAudit
    * @异常类型: */
   public Page findPage(ImportantVehicleAuditQuery query, int pageSize, int pageNum) {
   	return this.importantVehicleAuditDao.findPage(query,pageSize,pageNum);
   }
   
   /** @param query
    * @pdOid 20570f18-dee0-45d6-913e-a56f8ae831e1
    * @功能描述: 通过ImportantVehicleAuditQuery对象，查询ImportantVehicleAudit
    * @异常类型: */
   public List<ImportantVehicleAudit> findList(ImportantVehicleAuditQuery query) {
   	return this.importantVehicleAuditDao.findList(query);
   }

}